﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Activation;

namespace Quebec.Logging.Services.Server
{
	/// <summary>
	/// Implementation of the ServiceContract. This is hosted in the Mcs.Services project.
	/// </summary>
	[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
	public class LoggingService : ILoggingService
	{
		public void Debug(string applicationName, object message)
		{
			BaseLog.Instance.Debug(applicationName, message);
		}

		public void Info(string applicationName, object message)
		{
			BaseLog.Instance.Info(applicationName, message);
		}

		public void Error(string applicationName, object message)
		{
			BaseLog.Instance.Error(applicationName, message);
		}

		public void Fatal(string applicationName, object message)
		{
			BaseLog.Instance.Fatal(applicationName, message);
		}

		public void Warn(string applicationName, object message)
		{
			BaseLog.Instance.Warn(applicationName, message);
		}
	}
}
